import h5py
import pandas as pd
import numpy as np

# f = h5py.File('data.h5')
#
# # ds = f.create_dataset("chunked", (1000, 1000), chunks=(100, 100))
# ds = f.create_dataset("EmptyDataset", data=h5py.Empty("f"))
# # with open('sh600002.csv') as file:
# #     for line in file.readlines():
# #         print(line)
# # 读取数据
# # ds = f.create_dataset(np.random.random(10), chunks=True)
# # f.create_group('name')
#
# print(ds)
# f.close()


# nn = np.loadtxt(open("sh600002.csv","rb"), delimiter=",", skiprows=0)

data = np.genfromtxt('sh600002.csv', delimiter=',', skip_header=1)
for line in data:
    print(line)